package org.zjh.controller.listener;

/**
 * @description: TODO
 * @author 郑佳豪
 * @date 2024/10/4 21:00
 * @version 1.0
 */


import org.zjh.controller.GameController;
import org.zjh.utils.MySQLUtil;
import org.zjh.view.ui.GameUi;

import java.awt.event.MouseAdapter;
import java.awt.event.MouseEvent;

/**
 * 账号设置按钮监听
 */
public class AccountSettingJbtLis extends MouseAdapter {


    @Override
    public void mouseClicked(MouseEvent e) {
        //获取当前登入账号的密保问题以及答案等等
        MySQLUtil.getSecurityIssues(GameController.getInstance().getPlayer().getAccount(),GameController.getInstance().getPlayer().getNickname());
        //设置修改账户信息窗口可见
        GameUi.updatePlayerInfoFrame.setVisible(true);
    }
}
